package com.kaizzi.data.jdl.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kaizzi.data.common.been.TempBeen;
import com.kaizzi.data.common.been.TempBehavior;
import com.kaizzi.data.jdl.entity.MotionClocks;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Kzen
 * @Description description
 * @date 2020/9/11
 */
public interface MotionClocksMapper extends BaseMapper<MotionClocks> {

    Long getClockInCount(@Param("startDate") String startDate, @Param("endDate") String endDate);

//    @DS("jdl_view")
    Long getClockInUser(@Param("startDate") String startDate, @Param("endDate") String endDate);

    Long getClockInTrend(@Param("startDate") String startDate, @Param("endDate") String endDate);

    List<TempBeen> getClockInSportType(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getClockInArea(@Param("startDate") String startDate, @Param("endDate") String endDate);
    Long getClockInArea4(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getClockInGender(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getClockInAge(@Param("startDate") String startDate, @Param("endDate") String endDate);

    List<TempBeen> getYfFission(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getPublic(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getYfKoc(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getMarathon(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBeen> getWes(@Param("startDate") String startDate, @Param("endDate") String endDate);

    List<TempBehavior> getYfFission2(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBehavior> getPublic2(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBehavior> getYfKoc2(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBehavior> getMarathon2(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<TempBehavior> getWes2(@Param("startDate") String startDate, @Param("endDate") String endDate);
}
